package com.dusk.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    private Integer id;  //用户id
    private String userName;    //用户姓名
    private String userAccount;    //用户登录名
    private String userPassword;    //用户密码
    private String userUuid;    //用户的uuid
    private String sex; //用户性别
    private String tel; //用户电话
    private String mail;    //用户邮箱
    private String address;     //用户住址
    private Date createTime;    //用户创建时间
    private Date updateTime;    //用户更新时间
    private String headImage;    //用户头像


    public User(String userName, String userAccount, String userPassword, String userUuid, String sex, String tel, String mail, String address) {
        this.userName = userName;
        this.userAccount = userAccount;
        this.userPassword = userPassword;
        this.userUuid = userUuid;
        this.sex = sex;
        this.tel = tel;
        this.mail = mail;
        this.address = address;

    }
    public User(String userName, String userAccount, String userPassword, String userUuid, String sex, String tel, String mail, String address, String headImage) {
        this.userName = userName;
        this.userAccount = userAccount;
        this.userPassword = userPassword;
        this.userUuid = userUuid;
        this.sex = sex;
        this.tel = tel;
        this.mail = mail;
        this.address = address;
        this.headImage = headImage;
    }
}
